<template>
  <div class="panel">
    <div class="panel__header">
      <div class="panel__title">{{ title }}</div>
      <div class="panel__nav">
        <slot name="nav"/>
      </div>
    </div>
    <div class="panel__body">
      <slot/>
    </div>
  </div>
</template>

<style lang="scss" scoped>
  .panel {
    background-color: #fff;
    &__header {
      height: 84px;
      border-bottom: 2px solid #FA8C01;
      box-sizing: border-box;
      padding: 0 32px;
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      &::before {
        content: '';
        display: block;
        width: 4px;
        height: 32px;
        background-color: #FA8C01;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        margin: auto;
      }
    }
    &__body {
    }
    &__title {
      font-size: 36px;
      color: #343434;
    }
    &__nav {
      font-size: 28px;
      a {
        color: #FA8C01;
      }
    }
  }
</style>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  }
}
</script>
